/*
 *  JSONHelper.h
 *  AMPlugin
 *
 *  Created by Tiet Anh Vu on 5/24/12.
 *  Copyright 2012 __MyCompanyName__. All rights reserved.
 *
 */
#include "ProgressBar.h"
#include <json.h>
//#include "Magazine.h"

using namespace std;

//extern Magazine g_Magazines[10];

class JSONHelper {
public:
	static void fillMagazine(int index, const string &jsonString, bool loadImage, int min = 0, int max = 0, RangeProgressBar * BrowseProgress = nil, bool EnableBar = kFalse);
	static void initMagazines(const string &jsonString);
	static string imagesMapString();
	static string storiesMapString();
	static string linksMapString();
	static string AMPluginSetInfoMap();
	static void   AMPluginGetInfoMap(const string &_infoBuffer);
	static string FindParamID(const string &Content, string param_find);
	
	
};